import { createApp } from 'vue'
import App from './App.vue'
import router    from "@/router/index.js";
import './assets/main.css'
import axios from '@/axios';
import '@/assets/iconfont2.js' // 引入图标库
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


import { createPinia } from 'pinia'
const pinia = createPinia()

import  {persistPlugin} from "@/stores/persist.js";

pinia.use(persistPlugin)

// 将APP挂载到#app元素上

const app = createApp(App)

// 全局挂载axios
app.config.globalProperties.$http = axios
app.use(ElementPlus)
app.use(pinia)
app.use(router)
app.mount('#app')